<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="circle_style.css" />
</head>
<body>
<header class="aui-bar aui-bar-nav"style="background-color: #ffffff; height: 20pt" id="aui-header">
    <a class="aui-btn aui-pull-left" tapmode onclick="closeWin()">
        <span class="aui-iconfont aui-icon-left" style="color: #000000"></span>
    </a>
    <div class="aui-title" style="background-color: #ffffff;color: #000000;">资源</div>
    <div class="next_btn" onclick="nextUpload()">
        <h3 >下一步</h3>
    </div>
</header>
<footer class="aui-bar aui-bar-tab" id="circle_resource_footer">
    <div class="aui-bar-tab-item" tapmode>
        <span class="aui-iconfont aui-icon-star"></span>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <span class="aui-iconfont aui-icon-share"></span>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <div class="aui-dot"></div>
        <span class="aui-iconfont aui-icon-paper"></span>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <div class="aui-dot"></div>
        <span class="aui-iconfont aui-icon-video"></span>
    </div>
</footer>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
    apiready = function(){
        api.parseTapmode();
        var header = $api.byId('aui-header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var footer_h = $api.offset($api.byId('circle_resource_footer')).h;
        api.openFrame({
            name: 'circle_resource_upload_frm',
            url: 'circle_resource_upload_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: 'auto',
                marginBottom:footer_h
            }
        })


    };
    function nextUpload() {
        api.execScript({
            frameName:'circle_resource_upload_frm',
            script:'uploadFile()'
        })
    }
    function closeWin(){
        api.closeWin({
        });
    }
</script>
</html>